<%@page import="com.kaishengit.entity.Document"%>
<%@page import="com.kaishengit.entity.Project"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE HTML>
<html lang="en-US">
<head>
	<meta charset="UTF-8">
	<title>公司项目管理系统</title>
	<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css" />
	<script type="text/javascript" src="js/jquery.js"></script>
	<script type="text/javascript" src="js/bootstrap.min.js"></script>
</head>
<body class="body">
	
	<div class="navbar navbar-fixed-top">
		<div class="navbar-inner">
			<div class="container">
				<a class="brand" href="#">公司项目管理系统 PMS</a>
			</div>
		</div>
	</div>
	<%
		request.setCharacterEncoding("UTF-8");
		Project p = (Project)request.getAttribute("project");
	 %>
	
	<div class="container">
	  <div class="row">
		<div class="span3">
			<div style="padding: 8px 0;" class="well">
				<ul class="nav nav-list">
				  <li class="nav-header"><%=p.getProjectName() %></li>
				  <li class="divider"></li>
				  <li><a href="project.jsp"><i class="icon-home"></i>最新动态</a></li>
				  <li>
					<a href="goal.jsp"><i class="icon-flag"></i>目标</a>
				  </li>
				  <li class="document.jsp"><a href="#"><i class="icon-white icon-folder-open"></i>资料库</a></li>
				  <li><a href="file.jsp"><i class="icon-file"></i>文件共享</a></li>
				  <li><a href="contact.jsp"><i class="icon-user"></i>联系人</a></li>
				  <li><a href="idea.jspx?projectid=<%=p.getId()%>"><i class="icon-fire"></i>想法</a></li>
				</ul>
			</div>
		</div>
		<div class="span9">
			<ul class="breadcrumb" style="margin-bottom:0px;border-radius: 3px 3px 0 0;margin-top:15px">
				<li class="active">
					<a href="document.html"><i class="icon-folder-open"></i>资料</a>
				</li>
				<li class="pull-right"><i class="icon-plus"></i><a href="new_document.jsp" class="link-black">分享新资料</a></li>
			</ul>
			<div class="wall" style="margin-bottom:20px;">
			<% 
				List<Document> dlist  = (List<Document>)request.getAttribute("dlist");
				for(Document d:dlist){
			%>
				<blockquote>
				  <h4><a href="document_show.jsp"><%=d.getTitle() %></a></h4>
				  <p style="font-size:14px;line-height:1.5;"><%=d.getContent() %></p>
				  <small><%= d.getUserID()%>发布于<%= d.getCreateTime()%></small>
				  <a href="" title="编辑"><i class="icon-pencil"></i></a>
				  <a href="" title="删除"><i class="icon-trash"></i></a>
				</blockquote>
				
			<%} %>
				<div class="pagination pull-right">
				  <ul>
					<li><a href="#">Prev</a></li>
					<li class="active">
					  <a href="#">1</a>
					</li>
					<li><a href="#">2</a></li>
					<li><a href="#">3</a></li>
					<li><a href="#">4</a></li>
					<li><a href="#">Next</a></li>
				  </ul>
				</div>
				
				<div class="clear"></div>
			</div>
		</div>
	  </div>
	</div>
</body>
</html>